package com.lottery.dao;

import com.lottery.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserDao {


    List<User> getUsers();

    int login(String username, String password);

    User getUser(String username);

    void resetPassword(String username, String oldPassword, String newPassword);

    int appLogin(String machine_number, String password);
}
